.chatgpt-type-effect {
  position: relative;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  /* 添加以下属性优化文字渲染 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: contents;
}

.content-wrapper {
  position: relative;
  display: inline;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: currentColor;
  margin-left: 1px;
  vertical-align: middle;
  /* 优化光标闪烁动画 */
  animation: blink 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  transform-origin: center;
  will-change: opacity;
}

@keyframes blink {
  0%, 100% { 
    opacity: 1;
  }
  50% { 
    opacity: 0; 
  }
}

.content {
  display: inline;
  white-space: pre-wrap;
  /* 添加以下属性优化文字渲染 */
  backface-visibility: hidden;
  transform: translateZ(0);
}
